<?xml version="1.0" encoding="UTF-8"?>
	<order id="<?php echo $OrderItems[0]['Order']['id'];?>">
		<employee>
			<employeeId><?php echo $employee['Employee']['id']?></employeeId>
			<employeeName><?php echo $employee['Employee']['employee_name']?></employeeName>
		</employee>
		<table>
			<tableId><?php echo $OrderItems[0]['Order']['table_id']?></tableId>	
		</table>
		<items>
		<?php $totalPrices = 0 ;?>
		<?php foreach($OrderItems as $OrderItem){ ?>
			<item id="<?php echo $OrderItem['Item']['id'] ?>">
				<itemName><?php echo $OrderItem['Item']['item_name'] ?></itemName>
				<quanlity><?php echo $OrderItem['OrderItem']['quanlity'] ?></quanlity>				
				<itemPrice><?php echo $OrderItem['Item']['price']; ?></itemPrice>
				<note><?php echo $OrderItem['OrderItem']['note']; ?></note>				
			</item>
			<?php $totalPrices += $OrderItem['OrderItem']['quanlity']*$OrderItem['Item']['price']?>
		<?php } ?>
		</items>
		<totalPrice><?php echo $totalPrices; ?></totalPrice>
		<prepared><?php echo $OrderItem['Order']['prepared'] ?></prepared>
	</order>

